/*
 * CProcess.h
 *
 *  Created on: 2012-3-27
 *      Author: li.zhaoping
 */

#ifndef CPROCESS_H_
#define CPROCESS_H_

typedef enum{
	PROCESS_UNKOWNM = -1,
	PROCESS_BUF = 0,
	PROCESS_FILE = 1,
}process_type_t;

class CTaskCallback;
class CProcess {
	public:
		CProcess() {};
		virtual ~CProcess()  {};

	public:
		virtual bool Init(CTaskCallback *cb = 0) {};
		virtual bool UnInit() {};
		virtual process_type_t GetProcessType(const char* strUrl, const char* strRuler) {return PROCESS_UNKOWNM;};
		virtual bool ProcessBuffer(const char* buf, const char* strUrl, const char* strRuler) {};
		virtual bool ProcessFile(const char* sFile, const char* strUrl, const char* strRuler) {};
		virtual const char* GetRootRulerName() {return 0;};

};

#endif /* CPROCESS_H_ */
